﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MadLibrary.Web
{
    /// <summary>
    /// Holds informations about web page.
    /// </summary>
    public class WebPage
    {
        /// <summary>
        /// Gets or sets HtmlDocument of current web page.
        /// </summary>
        public HtmlDocument Document { get; set; }
        /// <summary>
        /// Gets or sets CssDocument of current web page.
        /// </summary>
        public CssDocument Styles { get; set; }
        /// <summary>
        /// Creates new empty web page.
        /// </summary>
        public WebPage()
        {
            this.Document = new HtmlDocument();
            this.Styles = new CssDocument();
        }
        /// <summary>
        /// Creates new web page with specified HTML document.
        /// </summary>
        /// <param name="document">Specifies HTML document which has to be added to new web page.</param>
        public WebPage(HtmlDocument document)
        {
            this.Document = document;
        }
        /// <summary>
        /// Creates new web page with specified CSS document.
        /// </summary>
        /// <param name="document">Specifies CSS document which has to be added to new web page.</param>
        public WebPage(CssDocument document)
        {
            this.Document = new HtmlDocument();
            this.Styles = document;
        }
        /// <summary>
        /// Creates new web page with specified HTML and CSS document.
        /// </summary>
        /// <param name="document">Specifies HTML document which has to be added to new web page.</param>
        /// <param name="styles">Specifies CSS document which has to be added to new web page.</param>
        public WebPage(HtmlDocument document, CssDocument styles)
        {
            this.Document = document;
            this.Styles = styles;
        }
    }
}
